package com.community.process._1010.dao.dto;

import com.community.process._1010.dao.entity.ProcessIngredients;
import com.community.process._1010.dao.entity.ProcessOrderItem;
import com.oneadds.lowcode.BaseDto;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @ClassName ProcessOrderItemDTO
 * @Description TODO
 * @Author jamesj
 * @Date 2024/9/5 17:14
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ProcessOrderItemDTO extends BaseDto<ProcessOrderItem> {

    @EqualsAndHashCode(callSuper = true)
    @Data
    public static class ProcessOrderItemBrief extends BaseDto<ProcessOrderItem>{
        private Long id;
        private String name;
    }

    @EqualsAndHashCode(callSuper = true)
    @Data
    public static class ProcessOrderItemNormal extends BaseDto<ProcessOrderItem>{
        private Long id;
        private String name;
        private List<ProcessIngredientsDTO.ProcessIngredientsBrief> processIngredientsList;
    }

}
